package logic.courseQuery_logic;

import java.util.LinkedList;
import java.util.List;

import vo.CourseVO;
import datasv.courseQuery_datasv.CourseQueryDatasv;
import datasv.datafactorysv.CourseQueryDatasvFactory;

public class SubModelCourseList {
	private CourseQueryDatasv courseQD = new CourseQueryDatasvFactory().create();
	public List<CourseVO> getAllCouOfSubModel(String collegeID, String modelID,
			String subModelID) {
		List<String> list = courseQD.getAllCouOfSubModel(collegeID, modelID, subModelID);
		LinkedList<CourseVO> courses = new LinkedList<CourseVO>();
		for(String id : list){
			courses.add(new CourseVO(id));
		}
		return courses;
	}
}
